﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cstudy.MODEL
{
    /// <summary>
    /// 文章
    /// </summary>
    public class artcles
    {

        public enum ArtcleStates { Preivate, Public, Top }
        private int postid;
        /// <summary>
        /// 文章ID
        /// </summary>
        public int postID
        {
            get { return postid; }
            set { postid = value; }
        }
        private string title;
        /// <summary>
        /// 文章标题
        /// </summary>
        public string Title
        {
            get { return title; }
            set { title = value; }
        }
        private string content;
        /// <summary>
        /// 文章内容
        /// </summary>
        public string Content
        {
            get { return content; }
            set { content = value; }
        }
        private string summary;
        /// <summary>
        /// 文章摘要
        /// </summary>
        public string Summary
        {
            get { return summary; }
            set { summary = value; }
        }
        private int authorid;
        /// <summary>
        /// 作者ID
        /// </summary>
        public int AuthorID
        {
            get { return authorid; }
            set { authorid = value; }
        }
        private DateTime createdate;
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateDate
        {
            get { return createdate; }
            set { createdate = value; }
        }
        private DateTime editdate;
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime EditDate
        {
            get { return editdate; }
            set { editdate = value; }
        }
        private int classid;
        /// <summary>
        /// 分类ID
        /// </summary>
        public int ClassID
        {
            get { return classid; }
            set { classid = value; }
        }
        private int tagid;
        /// <summary>
        /// 标签ID
        /// </summary>
        public int TagID
        {
            get { return tagid; }
            set { tagid = value; }
        }
        private int states;
        /// <summary>
        /// 文章状态
        /// </summary>
        public ArtcleStates States
        {
            get
            {
                return (ArtcleStates)states;
            }
            set
            {
                states = (int)value;
            }
        }
        private int readtimes;
        /// <summary>
        /// 阅读次数
        /// </summary>
        public int ReadTimes
        {
            get { return readtimes; }
            set { readtimes = value; }
        }
    }
}
